package com.hi.hiparty.entity;

import java.util.Date;
import java.util.Map;

import com.hi.hiparty.entity.param.ParamUtil;
import com.hi.hiparty.entity.param.Validate;



public class UserInfo{
	@Validate(name="userid",required=true)
	private String userid;
	@Validate(name="loginname",type="string")
	private String loginname;
	@Validate(name="email",type="string")
	private String email;
	@Validate(name="mobile",type="string")
	private String mobile;
	@Validate(name="nickname",type="string")
	private String nickname;
	@Validate(name="gender",type="string")
	private String gender;
	@Validate(name="mood",type="string")
	private String mood;
	@Validate(name="career",type="string")
	private String career;
	@Validate(name="interest",type="string")
	private String interest;
	
	private String avataUrl;
	
	private int weiboSync;
	
	private int tqqSync;
	
	private int renrenSync;
	
	private int kaixinSync;
	
	private Date ptime;

	private UserInfo(){
		
	}
	
	public String getUserid() {
		return userid;
	}

	public UserInfo setUserid(String userid) {
		this.userid = userid;
		return this;
	}

	public String getLoginname() {
		return loginname;
	}

	public UserInfo setLoginname(String loginname) {
		this.loginname = loginname;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public UserInfo setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getMobile() {
		return mobile;
	}

	public UserInfo setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}

	public String getNickname() {
		return nickname;
	}

	public UserInfo setNickname(String nickname) {
		this.nickname = nickname;
		return this;
	}

	public String getGender() {
		return gender;
	}

	public UserInfo setGender(String gender) {
		this.gender = gender;
		return this;
	}

	public String getMood() {
		return mood;
	}

	public UserInfo setMood(String mood) {
		this.mood = mood;
		return this;
	}

	public String getCareer() {
		return career;
	}

	public UserInfo setCareer(String career) {
		this.career = career;
		return this;
	}

	public String getInterest() {
		return interest;
	}

	public UserInfo setInterest(String interest) {
		this.interest = interest;
		return this;
	}

	public int getWeiboSync() {
		return weiboSync;
	}

	public UserInfo setWeiboSync(int weiboSync) {
		this.weiboSync = weiboSync;
		return this;
	}

	public int getTqqSync() {
		return tqqSync;
	}

	public UserInfo setTqqSync(int tqqSync) {
		this.tqqSync = tqqSync;
		return this;
	}

	public int getRenrenSync() {
		return renrenSync;
	}

	public UserInfo setRenrenSync(int renrenSync) {
		this.renrenSync = renrenSync;
		return this;
	}

	public int getKaixinSync() {
		return kaixinSync;
	}

	public UserInfo setKaixinSync(int kaixinSync) {
		this.kaixinSync = kaixinSync;
		return this;
	}

	public Date getPtime() {
		return ptime;
	}

	public UserInfo setPtime(Date ptime) {
		this.ptime = ptime;
		return this;
	}
	
	public static UserInfo builder(){
		return new UserInfo();
	}
	
	public String getGetMethodStr(){
		return ParamUtil.getGetMethodParams(this, this.getClass());
	}
	
	public Map<String,String> getPostMethodParams(){
		return ParamUtil.getPostMethodParams(this, this.getClass());
	}

	public String getAvataUrl() {
		return avataUrl;
	}

	public void setAvataUrl(String avataUrl) {
		this.avataUrl = avataUrl;
	}
}
